<!-- Begin assets/assets.tpl -->

{titlebar colspan=6 title=$lg->assets}

<table border="0" cellspacing="0" cellpadding="0" width="100%" align="center" class="contentpane">
{opentable}

<tr><td colspan="6" align="center">
{alphalist url="?module=assets"}
</td>
</tr>
<tr>
<td colspan="6" align="center">
<form method="post" action="?module=assets&search=true">Search:<input type="text" size="16" name="criteria" value="{$smarty.post.criteria}" />
<input type="submit" class="button" value="Search" />
<br />
<b>Note:</b> SQL wildcards accepted
</form>
</td>
</tr>
<tr class="sectiontableheader">
<td align="left" width="15%">{$lg->type}</td>
<td>Designation</td>
<td align="left" width="15%">{$lg->serial}</td>
<td align="left" width="15%">{$lg->status}</td>
<td align="center" width="5%">{$lg-edit}</td>
<td align="center" width="5%">{$lg->active}</td>
</tr>
{foreach from=$assets item=asset}
<tr class="{rowcolor}">
<td valign="top" width="15%">{atype id=$asset.typeid}</td>
<td valign="top"><a href="?module=assets&action=view&aid={$asset.aid}">{$asset.asset}</a></td>

<td valign="top" width="15%">{$asset.serial}</td>
<td valign="top" width="15%">{astatus id=$asset.statusid}</td>

<td align="center" width="5%"><a href="?module=assets&action=edit_info&aid={$asset.aid}"><img src="{$smarty.env.imgs.edit}" width="16" height="16" border="0" alt="Edit asset" /></a></td>
<td align="center" width="5%">
{if $asset.active eq "t"}
<a href="?module=assets&aid={$asset.aid}&active=f&start={$smarty.get.start}"><img src="{$smarty.env.imgs.ok}" width="16" height="16" border="0" alt="Active" /></a>
{else}
<a href="?module=assets&aid={$asset.aid}&active=t&start={$smarty.get.start}"><img src="{$smarty.env.imgs.no}" width="16" height="16" border="0" alt="Inactive" /></a>
{/if}
</td>
</tr>
{/foreach}

<td colspan="6" align="center" height="30px">&nbsp</>
</table>
</table>
</table>

<!-- End assets/assets.tpl -->



